import 'package:json_annotation/json_annotation.dart';
import 'package:xindong/models/xindong_noble_privilege_class.dart';
import 'package:xindong/models/xindong_noble_style_class.dart';

part 'xindong_noble_class.g.dart';

@JsonSerializable()
class XinDongNobleClass {
  late int id;
  late int grade;
  late int sort;
  late int icon;
  late int circle;
  late int had_fencheng;
  late Map<String, XinDongNoblePrivilegeClass> privilege; // { key: {id name description icon}}
  late Map config; // { key: {id name description icon}}
  late String name;
  late String price;
  late int style_id;
  late String style_name;

  // late List<XinDongNobleStyleClass> style;

  XinDongNobleClass();

  factory XinDongNobleClass.fromJson(Map<String, dynamic> json) => _$XinDongNobleClassFromJson(json);

  Map<String, dynamic> toJson() => _$XinDongNobleClassToJson(this);
}
